<template>
  <div id="app">
    <div>
      <router-view/>
    </div>
    <!-- <van-tabbar v-show="$store.state.isShowBar" @change="onChange" v-model="active"> -->
    <van-tabbar v-model="active">
        <van-tabbar-item name="home" icon="home-o" to="/Home">个人中心</van-tabbar-item>
        <van-tabbar-item name="addEvent" icon="friends-o" to="/addEvent">事件上报</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<style>

</style>
<script>

export default {
  data() {
    return {
      active: 0,
      // isEdshk:true
    };
  },
  methods:{
    onChange(){
      // alert(this.active);
      this.$toast.clear();

      sessionStorage.setItem("active",this.active)
    }
  },
  mounted(){
    this.active=parseInt(sessionStorage.getItem("active"))
  }
};
</script>